﻿package com.wefans.wefansapp.common.tool.utils;

import org.json.JSONArray;


/**
 * WebAPI의 결과 정의 클래스
 */
public class ApiResult {

	public static final int ERR_NONE = 200;
	public static final int ERR_JOSN= 10010;
	public static final int ERR_TIMEOUT = 1500;
	public static final int ERR_DISCONNECT_NETWORK = 2000;
	public static final int ERR_DOWNLOAD_FAIL = 3000;

	/**
	 * 성공
	 */
	public static final String SUCCESS = "1";
	/**
	 * 실패
	 */
	public static final String FAIL = "2";
	
	
	/**
	 * 파라미터 오류
	 */
	public static final String PARAM_ERROR = "3021";
	/**
	 * 회원 정보가 없을 경우
	 */
	public static final String MEMBER_ERROR = "3022";
	
	/**
	 * DB업데이트 실패 시
	 */
	public static final String DB_ERROR = "3023";
	
	/**
	 * Network 끊켰다! 3G | WIFI
	 */
	public static final String NETWORK_DIS = "NetDis";
	
	// 결과는 항상 이걸로 체크
	public int error_code = ERR_NONE;
	
	public int nResult1;
	public int nResult2;
	public int nResult3;
	public int nResult4;
	public int nResult5;
	
	public long lResult1;
	
	public boolean bResult1;

	public String ResultCd;
	public String ResultMsg;
	
	public String sResult1;
	public String sResult2;
	public String sResult3;
	public String sResult4;
	public String sResult5;
	public String sResult6;
	public String sResult7;
	public String sResult8;
	public String sResult9;
	public String sResult10;
	public String sResult11;
	
	public JSONArray lists;
	public JSONArray lists1;
	public JSONArray lists2;
	public JSONArray lists3;
	public JSONArray lists4;
	
	public Object mObj1;
	public Object mObj2;
	public Object mObj3;

}